﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Logger
{
    internal static class Env
    {
        private static string _nodeid;
        public static string NodeId
        {
            get
            {
                if (string.IsNullOrEmpty(_nodeid))
                {
                    _nodeid = Environment.GetEnvironmentVariable("logger_nodeid");
                }
                return _nodeid;
            }
        }
        private static string _env;
        public static string CurrentEnvironment
        {
            get
            {
                if (string.IsNullOrEmpty(_env))
                {
                    _env = Environment.GetEnvironmentVariable("Env");
                }
                return _env;
            }
        }
    }
}
